<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  </head>
  <body>
		<div class="widget-box">
       <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
         <h5>单位信息</h5>
       </div>
       <div class="widget-content nopadding">
         <form action="/xtgl/company/saveCompanyAdd.html" method="post" class="form-horizontal" id="companyForm">
           <div class="control-group">
             <label class="control-label"><span style="color:red;">*</span>单位名称</label>
             <div class="controls">
               <input type="text" class="span5" placeholder="Company Name" name="company_name" id="company_name" maxlength="100">
             </div>
           </div>
           <div class="control-group">
             <label class="control-label">简介说明</label>
             <div class="controls">
               <textarea style="margin:0px; width:548px; height:85px;" name="comment" id="comment"></textarea>
               <span class="help-block">最多可输入250个字符!</span>
             </div>
           </div>
           <div class="modal-footer">
           	<div style="float:left;">"<span style="color:red;">*</span>"为必填项。</div>
           	<a href="#" class="btn" data-dismiss="modal" onclick="closeDialog();" >关闭</a>
           	<a href="#" id="add-event-submit" class="btn btn-primary" onclick="saveCompany();" >保存</a>
           </div>
         </form>
       </div>
     </div>
  </body>
  	<link rel="stylesheet" href="<%=request.getContextPath() %>/css/bootstrap.min.css" />
		<link rel="stylesheet" href="<%=request.getContextPath() %>/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="<%=request.getContextPath() %>/css/matrix-style.css" />
		<link rel="stylesheet" href="<%=request.getContextPath() %>/css/matrix-media.css" />
		<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery/plugin/jquery.form.min.js"></script>
		<link rel="stylesheet" href="<%=request.getContextPath() %>/js/validate/css/validate.css" type="text/css" media="all" />
		<script type="text/javascript" src="<%=request.getContextPath() %>/js/validate/talent-validate-all-min.js"></script>
  	<script type="text/javascript" src="<%=request.getContextPath() %>/js/lhgdialog/dialogUtilNew.js"></script>
  	<script type="text/javascript" src="<%=request.getContextPath() %>/js/lhgdialog/lhgdialog.min.js?skin=iblue"></script>
		<link href="<%=request.getContextPath() %>/font-awesome/css/font-awesome.css" rel="stylesheet" />
		<script type="text/javascript">
			function saveCompany(){
				if(zfValidate.validate()){
					jQuery(".btn").attr("disabled", "disabled");
					jQuery("#companyForm").ajaxSubmit({
						url:"<%=request.getContextPath() %>/xtgl/company/saveCompanyAdd.html",
						type:"post",
						dataType:"json",
						success:function(data){
							alertSuccess(data,refershParent());
						}
					});
				}
			}
				
			jQuery(function(){
				zfValidate.vf.req.add('company_name');
			});
		</script>
</html>
